import re
pattern = r'mr_\W+
string = 'MR_ SHOP mr_ shop'
match = re.match(pattern, string,re.I)
print(match)
string ='项目名称MR_ SHOP mr_ shop'
match = re.match(pattern, string,re.I)
#匹配字符串，不区分大小写
print(match)

